package pt.elvis.revanweb.client.CustomEvents;


import pt.elvis.revanweb.client.DatabaseObjects.User_data;

import com.google.gwt.event.shared.GwtEvent;

public class AuthenticationEvent extends GwtEvent<AuthenticationEventHandler> {
	public static Type<AuthenticationEventHandler> TYPE = new Type<AuthenticationEventHandler>();
	private User_data user;

	@Override
	public Type<AuthenticationEventHandler> getAssociatedType() {
		return TYPE;
	}
	
	
	@Override
	protected void dispatch(AuthenticationEventHandler handler) {
		handler.onAuthenticationChanged(this);
	}


	public User_data getUser() {
		return user;
	}
	public void setUser(User_data user) {
		this.user = user;
	}
}
